import { defineStore } from "pinia";
export interface IUserInfoType {
  objectId: string;
  sessionToken: string;
  username: string;
  avatar: string;
}
interface IUserState {
  userInfo: IUserInfoType | null;
}
export const useUserStore = defineStore("user", {
  state: (): IUserState => {
    return {
      userInfo: null,
    };
  },
  persist: {
    key: "vue-pinia-user-info",
  },
});
